<bean id="${FtpComponent.id}"  class="com.kingyea.esb.components.protocol.ftp.FtpComponent">
	<property name="id"	value="${FtpComponent.id}"></property>
	<#if (FtpComponent.x)??>
	<property name="x"		value="${converter.string(FtpComponent.x)}" />
	<#else>
	<property name="x"		value="209" />
	</#if>
	<#if (FtpComponent.y)??>
	<property name="y"		value="${converter.string(FtpComponent.y)}" />
	<#else>
	<property name="y"		value="165" />
	</#if>
	
	<#if (FtpComponent.ftpName)??>
	<property name="ftpName"		value="${FtpComponent.ftpName}" />
	</#if>
	<property name="host"			value="${FtpComponent.host}" />
	<#if (FtpComponent.port)??>
	<property name="port"		value="${converter.string(FtpComponent.port)}" />
	</#if>
	<#if (FtpComponent.username)??>
	<property name="username"		value="${FtpComponent.username}" />
	</#if>
	<#if (FtpComponent.password)??>
	<property name="password"		value="${FtpComponent.password}" />
	</#if>
	<property name="directoryName"		value="${FtpComponent.directoryName}" />
	<#if (FtpComponent.recursive)??>
	<property name="recursive"		value="${converter.string(FtpComponent.recursive)}" />
	</#if>
	<#if (FtpComponent.initialDelay)??>
	<property name="initialDelay"		value="${converter.string(FtpComponent.initialDelay)}" />
	</#if>
	<#if (FtpComponent.delay)??>
	<property name="delay"		value="${converter.string(FtpComponent.delay)}" />
	</#if>
	<#if (FtpComponent.binary)??>
	<property name="binary"		value="${converter.string(FtpComponent.binary)}" />
	</#if>
	<#if (FtpComponent.download)??>
	<property name="download"		value="${converter.string(FtpComponent.download)}" />
	</#if>
	<#if (FtpComponent.streamDownload)??>
	<property name="streamDownload"		value="${converter.string(FtpComponent.streamDownload)}" />
	</#if>
	<#if (FtpComponent.localWorkDirectory)??>
	<property name="localWorkDirectory"		value="${FtpComponent.localWorkDirectory}" />
	</#if>
	<#if (FtpComponent.idempotent)??>
	<property name="idempotent"		value="${converter.string(FtpComponent.idempotent)}" />
	</#if>
	<property name="idempotentRepository">
		<bean class="org.apache.camel.processor.idempotent.FileIdempotentRepository">
		<property name="fileStore"			value="/XCHGDATA/BJ/idempotent/${service.id+FtpComponent.id}.dat"></property>
		<property name="maxFileStoreSize"	value="1048576"></property>
		</bean>
	</property>
	<#if (FtpComponent.fileFilter)??>
	<property name="fileFilter"		ref="${FtpComponent.fileFilter}" />
	</#if>
	<property name="outputs">
		<list>
			<#list FtpComponent.outputs as outputRefId>
			<bean class="com.kingyea.camel.runtime.transition.Transition">
				<property name="targetRef" ref="${outputRefId}"></property>
			</bean>
			</#list>
		</list>
	</property>
</bean>
